﻿using System.Collections.Generic;
using System.Linq;
using Idsrv4.Admin.BusinessLogic.Identity.Dtos.Identity.Interfaces;

namespace Idsrv4.Admin.BusinessLogic.Identity.Dtos.Identity;

public class UserClaimsDto<TUserClaimDto, TKey> : UserClaimDto<TKey>, IUserClaimsDto
    where TUserClaimDto : UserClaimDto<TKey>
{
    public UserClaimsDto()
    {
        Claims = new List<TUserClaimDto>();
    }

    public List<TUserClaimDto> Claims { get; set; }

    public string UserName { get; set; }

    public int TotalCount { get; set; }

    public int PageSize { get; set; }

    List<IUserClaimDto> IUserClaimsDto.Claims => Claims.Cast<IUserClaimDto>().ToList();
}